package com.jinzhi.jzweb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.base.CoreServiceImpl;
import com.jinzhi.jzweb.dao.CertificateProfileDao;
import com.jinzhi.jzweb.domain.CertificateProfileDO;
import com.jinzhi.jzweb.service.CertificateProfileService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 
 * <pre>
 * 证书概况
 * </pre>
 * <small> 2020-02-24 21:00:12 | lance</small>
 */
@Service
public class CertificateProfileServiceImpl extends CoreServiceImpl<CertificateProfileDao, CertificateProfileDO> implements CertificateProfileService {

    @Override
    public List<Map<Object,Object>> selByAll(){
        return baseMapper.selByAll();
    }

    @Override
    public List<Map<Object, Object>> selByFormal() {
        return baseMapper.selByFormal();
    }

    @Override
    public Page<CertificateProfileDO> findListPage(int current, int number) {
        Page<CertificateProfileDO> page = new Page<CertificateProfileDO>(current, number);
        return page.setRecords(this.baseMapper.findListPage(page));
    }

    @Override
    public Page<CertificateProfileDO> findListPageFormal(int current, int number) {
        Page<CertificateProfileDO> page = new Page<CertificateProfileDO>(current, number);
        return page.setRecords(this.baseMapper.findListPageFormal(page));
    }

    @Override
    public List<Map<Object,Object>> selOrgByCer(Map map){
        return this.baseMapper.selOrgByCer(map);
    }

    @Override
    public List<Map<Object, Object>> selregionAll() {
        return baseMapper.selregionAll();
    }
}
